package org.dromara.germbank.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;
import org.hibernate.validator.constraints.Length;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 管理团队表
 * 数据库表名：bus_partner_management
 */
@Data
@TableName("bus_partner_management")
public class BusPartnerManagement implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableField("id")
    @NotNull(message = "主键id不能为空")
    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer id;

    @TableField("employee_id")
    @NotBlank(message = "人员唯一编号不能为空")
    @Size(max = 32, message = "人员唯一编号长度不能超过32")
    @Length(max = 32, message = "人员唯一编号长度不能超过32")
    @Schema(description = "人员唯一编号，如 MGT-20240528-001", requiredMode = Schema.RequiredMode.REQUIRED)
    private String employeeId;

    @TableField("name")
    @NotBlank(message = "姓名不能为空")
    @Size(max = 50, message = "姓名长度不能超过50")
    @Length(max = 50, message = "姓名长度不能超过50")
    @Schema(description = "姓名", requiredMode = Schema.RequiredMode.REQUIRED)
    private String name;

    @TableField("mobile")
    @NotBlank(message = "手机号不能为空")
    @Size(max = 20, message = "手机号长度不能超过20")
    @Length(max = 20, message = "手机号长度不能超过20")
    @Schema(description = "手机号（登录+通知）", requiredMode = Schema.RequiredMode.REQUIRED)
    private String mobile;

    @TableField("position")
    @NotBlank(message = "职位不能为空")
    @Size(max = 50, message = "职位长度不能超过50")
    @Length(max = 50, message = "职位长度不能超过50")
    @Schema(description = "职位", requiredMode = Schema.RequiredMode.REQUIRED)
    private String position;

    @TableField("display_status")
    @NotBlank(message = "前端可见性不能为空")
    @Size(max = 10, message = "前端可见性长度不能超过10")
    @Length(max = 10, message = "前端可见性长度不能超过10")
    @Schema(description = "前端可见性：SHOW/HIDDEN", requiredMode = Schema.RequiredMode.REQUIRED)
    private String displayStatus;

    @TableField("create_time")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @TableField("update_time")
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @TableField("del_flag")
    @Schema(description = "删除标志（0存在 1删除）")
    private Integer delFlag;


}
